package cn.fch.gotrip.entity;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @program: gotrip
 * @description:
 * @CreatedBy: fch
 * @create: 2023-01-23 15:58
 **/
@Data
public class TravelOrder {
    private String id;
    private Travel travel;
    private User user;
    private TravelOrderType type;
    private String title;
    private BigDecimal price;
    @JSONField(format = "yyyy-MM-dd")
    private Date beginDate;
    @JSONField(format = "yyyy-MM-dd")
    private Date endDate;
    @JSONField(format = "yyyy-MM-dd hh:mm:ss")
    private Date creatTime;
    private Integer adultNum;
    private Integer childNum;
    private String begin;
    private String end;

    @Data
    public static class TravelOrderType {
        private Integer id;
        private String name;

        public TravelOrderType() {
        }

        public TravelOrderType(Integer id) {
            this.id = id;
        }
    }
}
